//package com.atguigu.eduservice.controller;
//
//
//import com.atguigu.commonutils.R;
//import com.atguigu.eduservice.client.CenterClient;
//import com.atguigu.eduservice.entity.EduComment;
//import com.atguigu.eduservice.service.EduCommentService;
//import com.baomidou.mybatisplus.core.metadata.IPage;
//import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.cloud.openfeign.FeignClient;
//import org.springframework.web.bind.annotation.*;
//
//import java.util.List;
//
///**
// * <p>
// * 评论 前端控制器
// * </p>
// *
// * @author testjava
// * @since 2021-10-19
// */
//@RestController
//@RequestMapping("/eduservice/comment")
//@CrossOrigin
//@FeignClient
//public class EduCommentController {
//    @Autowired
//    private EduCommentService commentService;
//    @Autowired
//    private CenterClient centerClient;
//    //创建分页查询的方法
//    @GetMapping("getCourseCommment/{current}/{limit}")
//    public R getCourseCommment(@PathVariable long current,
//                               @PathVariable long limit){
//        Page<EduComment> commentPage = new Page<>(current,limit);
//       commentService.page(commentPage, null);
//        long total = commentPage.getTotal();
//        List<EduComment> commentList = commentPage.getRecords();
//        return  R.ok().data("total",total).data("commentList",commentList);
//    }
//    //添加评论
//    @PostMapping("add")
//    public R addComment(String comments){
//        return R.ok();
//    }
//
//}

